package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.bean.Orders;
import com.itheima.bean.ShoppingCart;
import com.itheima.dto.OrdersDto;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author Tang
 * @date 2023/2/25
 */
public interface OrdersService extends IService<Orders> {
    /**
     * 提交订单
     * @param orders
     */
    @Transactional
    void submit(Orders orders);

    Page<OrdersDto> pageOrderByUser(Long page, Long pageSize);

    void again(Orders orders);
}
